home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: newsfeed.internetmci.com!miwok!linex1!news
- From: mfried@linex.com (Marty Fried)
- Subject: Re: VC 4.0 Link Errors - Can Someone Help Me Resolve, Please
- X-Nntp-Posting-Host: sp102.linex.com
- Message-ID: <315e29f2.27857335@news.linex.com>
- Sender: news@linex1.linex.com
- Organization: Cirrius Cybernetics Corp
- X-Newsreader: Forte Agent .99e/32.194
- References: <4ja5u3$qh8@news3.digex.net>
- Date: Sun, 31 Mar 1996 06:48:22 GMT
-
- Once upon a time (OK, it was 27 Mar 1996 01:33:55 GMT),
- bablank@access.digex.net (Bruce Blank) wrote:
-
- >Hello All,
- >
- > I am a new Windows 95 user and am using Visual C++ 4.0 for the first
- >time. I'm trying to compile and link a program that uses the IShellLink
- >interface. I get the following linker errors:
- >
- >--------------------Configuration: getsgdat - Win32
- >Debug--------------------
- >Compiling...
- >getsgdat.cpp
- >Linking...
- >getsgdat.obj : error LNK2001: unresolved external symbol
- >__imp__CoInitialize@4
- >getsgdat.obj : error LNK2001: unresolved external symbol _IID_IPersistFile
- >getsgdat.obj : error LNK2001: unresolved external symbol
- >__imp__CoCreateInstance@20
- >Debug/getsgdat.exe : fatal error LNK1120: 3 unresolved externals
- >Error executing link.exe.
- >getsgdat.exe - 4 error(s), 0 warning(s)
-
- I haven't used those functions, but it looks like you may be missing a
- library in the link input section of the build options, probably one
- of the OLE libs. I'm not sure how to find out which one, but maybe
- you could create a new test project, with OLE support, and see what
- libs it uses, and try adding any to your project that are missing.
-
- _______________________________________________________
- Marty Fried - mfried@linex.com Press Enter to Exit
- San Anselmo, CA -NT message
- (MSVC4 + MFC) && (Win95 || NT);
-